Skip to content

feat: default block alignment to centerLeft#74

Merged
tilucasoli merged 1 commit into
mainfrom
tilucasoli/fix-issue-65
May 21, 2026
Merged

feat: default block alignment to centerLeft#74
tilucasoli merged 1 commit into
mainfrom
tilucasoli/fix-issue-65

Conversation

@tilucasoli
Copy link
Copy Markdown
Collaborator

Closes #65.

Blocks (@block, @widget, @image, and custom widgets) now render with centerLeft alignment when align is not set, instead of center, since paragraph-like content is easier to read and scan when left-aligned. The default is resolved through a new Block.resolvedAlign getter in the core model, used by the block container and the built-in image widget; align: center can still be set explicitly to restore the previous behavior. Updates the align reference docs and adds regression tests for ContentBlock/WidgetBlock defaults and the rendered block alignment.

🤖 Generated with Claude Code

@docs-page
Copy link
Copy Markdown

docs-page Bot commented May 19, 2026

To view this pull requests documentation preview, visit the following URL:

docs.page/btwld/superdeck~74

Documentation is deployed and generated using docs.page.

Blocks (@block, @widget, @image, and custom widgets) now render with
centerLeft alignment when `align` is not set explicitly, instead of
center. Paragraph-like content is easier to read and scan when
left-aligned. Set `align: center` explicitly to restore the previous
default.

Closes #65

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@tilucasoli tilucasoli force-pushed the tilucasoli/fix-issue-65 branch from 712828f to 95d3492 Compare May 20, 2026 03:06
@github-actions
Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 95d3492):

https://superdeck-dev--pr74-tilucasoli-fix-issue-8kk6bjnu.web.app

(expires Fri, 19 Jun 2026 03:10:56 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: bd68fc230762285849207e7e120aaf87cd4ca2f9

@tilucasoli tilucasoli merged commit e6e3f63 into main May 21, 2026
6 checks passed
@tilucasoli tilucasoli deleted the tilucasoli/fix-issue-65 branch May 21, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change @block default align to centerLeft

1 participant